<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link rel="stylesheet" href="../../gameStyle.css" type="text/css" />
        <script type="text/javascript" src="../ivank.js"></script>
        <script type="text/javascript" src="../types.js"></script>
        <script type="text/javascript" src="../button.js"></script>
        <script type="text/javascript" src="../timer.js"></script>
        <script type="text/javascript" src="../level.js"></script>
        <script type="text/javascript" src="mirror.js"></script>
        <script type="text/javascript" src="levelReflect.js"></script>
        <script type="text/javascript" src="Geometry.js"></script>
        
    </head>
    <body onload="Start();">

        <canvas id ="canvas" width="740" height="500"></canvas>
        <script>            
            var canvas = document.getElementById("canvas");
            var cwidth = canvas.getAttribute("width");
            var cheight = canvas.getAttribute("height");
            
            
            function Start(){
                var stage = new Stage("canvas");
                var level = new ReflectLevel("Odraz",6,typePhysics);
                level.init();
                level.parent = stage;
                stage.addChild(level); // pridavam level na index 0, index tam inak nemusim davat
                intervalID = window.setInterval(level.run, 100);  
            }
        </script>
    </body>
</html>